package nskhan.utilities;

import java.util.Date;

import ecologylab.xml.ElementState;

public class Point extends ElementState{
	
	@xml_attribute int x,y;
	@xml_attribute @xml_tag("t") long timeStamp;
	
	public Point(){
		x = 0;
		y = 0;		
		timeStamp = new Date().getTime();
	} 
	
	public Point(int x, int y){
		this.x = x;
		this.y = y;
		timeStamp = new Date().getTime();
	}
	
	public int getX(){
		return this.x;
	}
	
	public int getY(){
		return this.y;
	}
	
	public long getTimeStamp(){
		return timeStamp;
	}
	
	public void setX(int x){
		this.x = x;
	}
	
	public void setY(int y){
		this.y = y;
	}
}
